'use strict'
import {connect} from 'dva';
import React, {Component} from 'react';
import CacheRoute from 'react-router-cache-route';
import Full from "../../components/layout/Full";
import BookClass from "../../pages/Book/BookClass/BookClass";
import FirstTest from "../../pages/Book/FirstTest/FirstTest";
import ProductContent from "../../pages/ProduceContent/ProductContent";
import {withRouter} from "react-router-dom";

@withRouter
class Book extends Component {
  render() {
    return (
      <Full>
        {/*未测试过进行第一次测试*/}
        <CacheRoute path="/book/firstTest" exta component={FirstTest}/>
        {/*选择老师页面*/}
        <CacheRoute path="/book/bookClass" exact component={BookClass}/>
        {/*详情页*/}
        <CacheRoute path="/book/productContent" exact component={ProductContent}/>
      </Full>
    );
  }
}

Book.propTypes = {};

const opts = () => {
  return {};
};

export default connect(opts)(Book);
